-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Member type container in management API #16914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Member type container in management API #16914
Conversation
|
Hi there @bjarnef, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
|
Hey @bjarnef, thanks for recreating this PR, I'll check back on the historic conversations around this one, and myself (or another core collaborator) will review this soon😸 |
|
@bergmania @elit0451 would this makes sense to support now to streamline content type features and as containers are supported for blueprints as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces container (folder) support for member types in the management API, aligning it with the existing folder functionality for document types and media types. This enhancement enables better organization of member types through hierarchical folder structures.
Key changes:
- Implements member type container service with associated interfaces and locking mechanisms
- Adds new UmbracoObjectType for member type containers with corresponding constants
- Creates complete API controller structure for member type folder CRUD operations
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Umbraco.Core/Services/MemberTypeContainerService.cs | Core service implementation for member type container operations |
| src/Umbraco.Core/Services/Locking/MemberTypeLocks.cs | Locking configuration for member type operations |
| src/Umbraco.Core/Services/IMemberTypeContainerService.cs | Interface definition for member type container service |
| src/Umbraco.Core/Models/UmbracoObjectTypes.cs | Adds MemberTypeContainer enum value and reorganizes member-related types |
| src/Umbraco.Core/Constants-UdiEntityType.cs | Adds member type container UDI entity type constant |
| src/Umbraco.Core/Constants-ObjectTypes.cs | Adds member type container GUID constants |
| src/Umbraco.Cms.Api.Management/Controllers/MemberType/Folder/UpdateMemberTypeFolderController.cs | API controller for updating member type folders |
| src/Umbraco.Cms.Api.Management/Controllers/MemberType/Folder/MemberTypeFolderControllerBase.cs | Base controller for all member type folder operations |
| src/Umbraco.Cms.Api.Management/Controllers/MemberType/Folder/DeleteMemberTypeFolderController.cs | API controller for deleting member type folders |
| src/Umbraco.Cms.Api.Management/Controllers/MemberType/Folder/CreateMemberTypeFolderController.cs | API controller for creating member type folders |
| src/Umbraco.Cms.Api.Management/Controllers/MemberType/Folder/ByKeyMemberTypeFolderController.cs | API controller for retrieving member type folders by key |
Added a new service registration for `IMemberTypeContainerService` in the `AddCoreServices` method of `UmbracoBuilder.cs`.
|
@nul800sebastiaan looks like the base method only has 5 arguments now? :)
|
It's just the code analyzer complaining that there are too many arguments. This is not something we can avoid, the base must take 7 arguments at this time. So all good. |
|
I've merged this now and marked it as a breaking change (a build will be needed, but that will definitely be needed once you upgrade to v17 anyway). However, this is now something that can be done programmatically and that means @ronaldbarendse Umbraco Deploy will need to support it and @KevinJump uSync will need to support it. |
|
@nul800sebastiaan Did someone forget to review this PR before merging? 😅 Using the Management API to create a new folder instantly returns the following error: Adding However, because the I've partially fixed these issues in #20706, but the backoffice UI still needs to be implemented. If this isn't something we can ship in the final v17 release, I'd suggest reverting this PR and postponing it for v18. |
Prerequisites
Description
This PR is a follow-up on #14833 which wasn't merged in old backoffice.
However I think it is still relevant to support folders (containers) for member type to streamline it with document type and media type. Furthermore member type also have some recently added features like copy of member type and composition.